﻿@using KPIS.GERP.Models;
@model KPIS.GERP.Models.ICM.Movement

@{
    ViewBag.Title = "โอนย้าย";
    ViewBag.Descr = "เพิ่มข้อมูลการโอนย้าย";
}

@using (Html.BeginForm("Create", "Movement", FormMethod.Post, new { @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()

    <div class="block-button-menu-above">
        @Html.ButtonViewAll()
        @Html.ButtonSubmit()
    </div>

    @Html.ValidationSummary(true, KPIS.GERP.Models.Class.ValidateText.RequiredField, new { @class = "alert alert-error" })
    @Html.Partial("_EditorForm")

}

@section scripts
{
    

     <script type="text/javascript">

         $("#txtCreatedWhen").val($("#date").val());
         
         $(document).ready(function () {
             $("#Method0").attr('check','check');
             $("#GroupDes").hide();
             $("#Method0").click(function () {
                 $("#GroupWh").show();
                 $("#GroupDes").hide();
             });
             $("#Method1").click(function () {
                 $("#GroupDes").show();
                 $("#GroupWh").hide();
             });
             
         });

    </script>
}